package com.nuonuo.dubbo.auth.config;

import org.apache.dubbo.config.SslConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author duan
 * @version 1.0
 * @date 2023/2/24 10:11
 */
@Configuration
public class WebMvcConfig {

    @Bean
    public SslConfig sslConfig() {
        SslConfig sslConfig = new SslConfig();
        sslConfig.setServerKeyCertChainPath("F:\\person\\code\\test-demo\\dubbo-auth-test\\dubbo-auth-provider\\src\\main\\resources\\certs\\server0.pem");
        sslConfig.setServerPrivateKeyPath("F:\\person\\code\\test-demo\\dubbo-auth-test\\dubbo-auth-provider\\src\\main\\resources\\certs\\server0.key");
        return sslConfig;
    }
}
